<template>
  <div>
    <p>
        {{val}}
    </p>
    <p>Page Aa</p>
    <p>
      <router-link to="/a">返回上一级</router-link>
    </p>
    <p>
      <router-link to="/">返回首页</router-link>
    </p>
    <button @click="alertVal">alert</button>
  </div>
</template>
<script>
export default {
  data () {
    return {
      val: this.$route.query.content
    }
  },
  methods: {
    alertVal () {
      alert(this.val)
    }
  }
}
</script>
